﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="service_wsjf.aspx.cs" Inherits="service_wsjf" %>

<%@ Register Src="uc/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="uc/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/service.css" rel="stylesheet" type="text/css" />
    <link href="css/jquery-ui-1.7.3.custom.css" rel="stylesheet" type="text/css" />
    <script src="http://i.ymcps.com/images/float/floatS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:header ID="header1" runat="server" /><br />
    <div class="channelLayout">
        <!------ 客服专区 频道导航 start ------>
        <div class="topLine">
        </div>
        <div class="service_title service_bg">
        </div>
        <div class="channelNavBg">
            <div class="hqzx_nav_tb">
                <ul>
                    <li><a href="Default.aspx" class="b">客服首页</a></li>
                    <li><a href="service_video.aspx" class="b">培训视频</a></li>
                    <li><a href="servicehelp/index.aspx" target="_blank" class="b">帮助中心</a></li>
                    <li class="hqzx_nav_cur service_bg">自助服务</li>
                    <li><a href="service_feedback.aspx" class="b">意见反馈</a></li>
                    <li><a href="training.aspx" class="b">各地公告</a></li>
                    <li><a href="training1.aspx" class="b">会场预约</a></li> 
                    <li><a href="service_map1.aspx" class="b">全国服务商</a></li>
                </ul>
            </div>
        </div>
        <!------ 客服专区 频道导航 end ------>
    </div>
    <div class="clearok">
    </div>
    <!------ 自助服务 start ------>
    <div class="service_self1 marginTop10 font14 font-weight">
        <img src="images/index_ico2.gif" class="img" />自助服务&nbsp; 
        <a href="http://kefu.emoney.cn/servicehelp/detail2.aspx?infoid=323" 
            target="_blank" style="font-weight:normal;color:Blue">如何使用?</a>
    </div>
    <div class="clearok">
    </div>
    <!------ 网上积分 start ------>
    <input id="hidName" type="hidden" runat="server" value="" /><input id="hidPwd" type="hidden"
        runat="server" />
    <div class="self_c marginTop10" id="divwsjf">
        <div class="self_c_l" style="height:380px;">
        <div class="self_login" id="login" att="ulogin">
                </div>
            <ul>
                 <li att="ulogin"><a id="qkcl">清空处理</a><div class="self_ico">
                    <img src="images/ico_self1.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_xgmm.aspx">修改密码</a><div class="self_ico">
                    <img src="images/ico_self3.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_dqrcx.aspx">到期日查询</a><div class="self_ico">
                    <img src="images/ico_self4.gif" /></div>
                </li>
                <li><a href="service_rjcz.aspx">软件充值</a><div class="self_ico">
                    <img src="images/ico_self5.gif" /></div>
                </li>
                <li att="ulogin" class="current">网上积分<div class="self_ico">
                    <img src="images/ico_self6.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_wyzs.aspx">我要折算</a><div class="self_ico">
                    <img src="images/ico_self7.gif" /></div>
                </li>
                <li att="ulogin"><a href="service_mmbh.aspx">密码保护</a><div class="self_ico">
                    <img src="images/ico_self8.gif" /></div>
                </li>
                <li att="ulogin"><a id="opendog" style="cursor:hand" href="javascript:void(0)">精灵狗</a><div class="self_ico">
                    <img src="images/smalldog.jpg" style="height: 17px; width: 15px" /></div></li>
            </ul>
        </div>
        <div class="self_c_r" style="height:378px;">
            <div class="self_c_r_c6" style="height: 130px">
                <ul>
                <li><span class="coffee font-weight font14">参加各类活动介绍用户等，可得到对应的积分。<br />
                        通过获得的积分可兑换等值产品。</span></li>
                    <li class="line"></li>
                    <li><span class="font14 font-weight gray_t">用户名：</span><asp:Label ID="lblUser" runat="server"
                        Text="Label"></asp:Label></li>
                </ul>
            </div>
        </div>
    </div>
    <div id="dialogJf" title="积分信息" runat="server" style="display:none">
        <div id="diy_form06">
            <table align="center" cellspacing="0" width="95%" style="border-collapse: collapse;"
                border="1">
                <tr>
                    <td style="width: 25%">
                        益盟卡号:
                    </td>
                    <td style="width: 25%">
                        <label id="lab_EMCard" runat="server">
                        </label>
                    </td>
                    <td style="width: 25%">
                        用户姓名:
                    </td>
                    <td style="width: 25%">
                        <label id="lab_UserName" name="lab_UserName" runat="server">
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        联系电话:
                    </td>
                    <td colspan="3">
                        <label id="lab_Tel" name="lab_Tel" runat="server">
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        联系地址:
                    </td>
                    <td colspan="3">
                        <label id="lab_Address" name="lab_Address" runat="server">
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        用户积分:
                    </td>
                    <td>
                        <label id="lab_Total" style="color: red" name="lab_Total" runat="server">
                        </label>
                    </td>
                    <td>
                        可用积分:
                    </td>
                    <td>
                        <label id="lab_Can" style="color: red" name="lab_Can" runat="server">
                        </label>
                    </td>
                </tr>
            </table>
            <table id="tbIntegral" align="center" cellspacing="0" width="95%" style="border-collapse: collapse;"
                border="1" runat="server">
                <tr>
                    <th>
                        序号
                    </th>
                    <th>
                        日期
                    </th>
                    <th>
                        积分项目
                    </th>
                    <th>
                        分值
                    </th>
                </tr>
            </table>
        </div>
    </div><div class="marginTop10"></div>
    <div id="loginFram" style="position: absolute;  top: 220px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="UserLogin.aspx" width="292px" height="242px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <div id="qkFram" style="position: absolute; top: 220px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="qkcl.aspx" width="265" height="170px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <div id="dogFram" style="position: absolute; top: 240px; left: 580px; z-index: 100;
        display: none;">
        <iframe src="dog.aspx" width="243px" height="158px" scrolling="no" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
    </div>
    <!------ 网上积分 end ------>
    <uc2:footer ID="footer1" runat="server" />
    </form>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var rows;
        var i = 0;
        function AppendRow() {
            for (var j = 0; j < 5 && i < rows.length; j++, i++) {
                var row = rows[i];
                $("#tbIntegral").append("<tr ><td>" + row.xh + "</td><td>" + row.dTime + "</td><td>" + row.content + "</td><td>" + row.fz + "</td></tr>");
            }
            if (i < rows.length) {
                setTimeout(AppendRow, 5);
            }
        }
        $(document).ready(function () {
            var name = $('#hidName').val();
            if (name == '') {
                $('#login').html("您好，请登录<a href=\"#\"><img src=\"images/btn_login.jpg\" border=\"0\" /></a>");
                $('#qkcl').removeAttr("onclick");
            } else {
                $('#login').html("欢迎您，<br/>" + name + "用户<br/><a href=\"OutLogin.aspx\" onclick=\"return confirm('确定退出？')\"><img src=\"images/btn_exit.jpg\" border=\"0\" /></a>");
                $('#qkcl').bind({
                    click: function () {
                        document.getElementById("qkFram").style.display = "block";
                    }
                });
                $('#opendog').bind({
                    click: function () {
                        document.getElementById("dogFram").style.display = "block";
                    }
                });
            }
            $('[att=ulogin] a,').click(function () {
                var uname = $('#hidName').val();
                if (uname == '') {
                    document.getElementById("loginFram").style.display = "block";
                    return false;
                }
            });
            $('#dialogJf').dialog({
                autoOpen: false,
                modal: true,
                width: 800,
                height: 500,
                buttons: {
                    "取消": function () {
                        $("#regImg").attr("src", "common/RegImg.aspx?id=" + Math.random());
                        $(this).dialog("close");
                    }
                }
            });
            //网上积分
            var name1 = $('#hidName').val();
            var pwd1 = $('#hidPwd').val();
            if (name1 != '' && pwd1 != '') {
                $.post("Handler/integral.ashx", { name: name1, pwd: pwd1 }, function (data) {
                    if (data == '服务器忙，请稍后再试' || data == '用户验证失败，请重新输入!' || data == '验证码错误') {
                        alert(data);
                        return;
                    }
                    var item = eval("(" + data + ")");
                    $("#lab_EMCard").html(item.cardId);
                    $("#lab_UserName").html(item.name);
                    $("#lab_Tel").html(item.mobile);
                    $("#lab_Address").html(item.address);
                    $("#lab_Total").html(item.jf);
                    $("#lab_Can").html(item.kyJf);
                    rows = item.detail;
                    setTimeout(AppendRow, 5);
                    $('#dialog').dialog('close');
                    $('#dialogJf').dialog('open');
                    $("#pwd").val('');
                })
                return false;
            }
        });
    </script>
</body>
</html>
